package com.gpt.article.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;
import java.util.List;

/**
 * 采集文章对象 gpt_spider_article
 * 
 * @author zhuzi
 * @date 2023-10-24
 */
public class GptSpiderArticle extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 文章ID */
    private Long id;


    /**创建生成id**/
    private Long fileId;

    /** 文章标题 */
    @Excel(name = "文章标题")
    private String title;

    /** 内容id */
    @Excel(name = "内容id")
    private Long contentId;

    /** 文章唯一编码 */
    @Excel(name = "文章唯一编码")
    private String urlMd5;

    /** 来源id */
    @Excel(name = "来源id")
    private Long sourceId;

    /** 来源名称 */
    @Excel(name = "来源名称")
    private String sourceName;

    /** 状态（0=未洗稿,1=已洗稿，2=洗稿中，3=洗稿失败） */
    @Excel(name = "状态", readConverterExp = "0=未洗稿,1=已洗稿,2=洗稿中")
    private String status;

    /** 抓取的链接 */
    @Excel(name = "抓取的链接")
    private String spiderUrl;

    /**采集id**/
    private Long spiderDiyId;

    /**采集名称**/
    private String spiderDiyName;

    /**任务Id**/
    private Long taskId;

    /**生成模型Id**/
    private Long promptsId;

    /**任务名**/
    private String promptsName;

    /**发布时间**/
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date pushTime;

    /** 担任角色 */
    private String takeRole;

    /** 生成模板 */
    private String genStyle;

    private String artContent;


    private Integer classId;

    private String className;



    /** 采集文章内容信息 */
    private List<GptSpiderArticleContent> gptSpiderArticleContentList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setContentId(Long contentId) 
    {
        this.contentId = contentId;
    }

    public Long getContentId() 
    {
        return contentId;
    }
    public void setUrlMd5(String urlMd5) 
    {
        this.urlMd5 = urlMd5;
    }

    public String getUrlMd5() 
    {
        return urlMd5;
    }
    public void setSourceId(Long sourceId) 
    {
        this.sourceId = sourceId;
    }

    public Long getSourceId() 
    {
        return sourceId;
    }
    public void setSourceName(String sourceName) 
    {
        this.sourceName = sourceName;
    }

    public String getSourceName() 
    {
        return sourceName;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setSpiderUrl(String spiderUrl) 
    {
        this.spiderUrl = spiderUrl;
    }

    public String getSpiderUrl() 
    {
        return spiderUrl;
    }

    public List<GptSpiderArticleContent> getGptSpiderArticleContentList()
    {
        return gptSpiderArticleContentList;
    }

    public void setGptSpiderArticleContentList(List<GptSpiderArticleContent> gptSpiderArticleContentList)
    {
        this.gptSpiderArticleContentList = gptSpiderArticleContentList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("contentId", getContentId())
            .append("urlMd5", getUrlMd5())
            .append("sourceId", getSourceId())
            .append("sourceName", getSourceName())
            .append("status", getStatus())
            .append("spiderUrl", getSpiderUrl())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("gptSpiderArticleContentList", getGptSpiderArticleContentList())
            .toString();
    }

    public Long getSpiderDiyId() {
        return spiderDiyId;
    }

    public void setSpiderDiyId(Long spiderDiyId) {
        this.spiderDiyId = spiderDiyId;
    }

    public String getSpiderDiyName() {
        return spiderDiyName;
    }

    public void setSpiderDiyName(String spiderDiyName) {
        this.spiderDiyName = spiderDiyName;
    }

    public Long getTaskId() {
        return taskId;
    }

    public void setTaskId(Long taskId) {
        this.taskId = taskId;
    }

    public Long getPromptsId() {
        return promptsId;
    }

    public void setPromptsId(Long promptsId) {
        this.promptsId = promptsId;
    }

    public Date getPushTime() {
        return pushTime;
    }

    public void setPushTime(Date pushTime) {
        this.pushTime = pushTime;
    }

    public String getPromptsName() {
        return promptsName;
    }

    public void setPromptsName(String promptsName) {
        this.promptsName = promptsName;
    }

    public String getTakeRole() {
        return takeRole;
    }

    public void setTakeRole(String takeRole) {
        this.takeRole = takeRole;
    }

    public String getGenStyle() {
        return genStyle;
    }

    public void setGenStyle(String genStyle) {
        this.genStyle = genStyle;
    }

    public String getArtContent() {
        return artContent;
    }

    public void setArtContent(String artContent) {
        this.artContent = artContent;
    }

    public Integer getClassId() {
        return classId;
    }

    public void setClassId(Integer classId) {
        this.classId = classId;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public Long getFileId() {
        return fileId;
    }

    public void setFileId(Long fileId) {
        this.fileId = fileId;
    }
}
